<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <!-- header -->
    <%@ include file="/WEB-INF/views/include/header.jsp" %>
</head>
<style>
    body {
        background: #fff;
    }

    p {
        margin-top: 8px;
    }

    .information2 {
        border: 1px solid #ccc;
        padding-top: 8px;
        padding-bottom: 8px;
        margin-bottom: 10px;
    }
    .FeedbackContent1{
        cursor: pointer !important;
    }
</style>
<body>
<%--上传成功模态框--%>

<%--催办--%>
<form:form commandName="taskUnit" cssClass="form-horizontal" role="form" onsubmit="return false;"
           enctype="multipart/form-data" id="updateForm">
    <div class="col-sm-offset-1 row">
        <div class="form-group">
            <label class="control-label col-sm-1 no-padding-right">任务名称</label>
            <div class="col-sm-8">
                <input type="text" value="${taskUnit.taskMainName}" class="form-control" readonly>
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-sm-1 no-padding-right">子事项</label>
            <div class="col-sm-8">
                <input type="text" value="${taskUnit.taskSubName}" class="form-control" readonly>
            </div>
        </div>
        <div class="form-group">
        <c:if test="${not empty taskBackNews}">
            <div class="col-sm-8 col-sm-offset-1 uploadList">
                <p>反馈信息:</p>
                <c:forEach items="${taskBackNews}" var="taskBackNew">
                    <div class="information2">
                        <div class="form-group">
                            <label class="control-label col-sm-offset-1 col-sm-1">反馈人:</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control" value="${taskBackNew.senderName}" readonly>
                            </div>
                            <label class="control-label col-sm-1">反馈状态:</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control"
                                       value="${taskBackNew.status == 0 ? "未处理" :taskBackNew.status == 1 ? "合格" : taskBackNew.status == 2 ? "退回重办" :taskBackNew.status == 3 ? "已反馈" : "未知"}"
                                       readonly>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-sm-2">反馈日期:</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control"
                                       value="${taskBackNew.createDate}" readonly>
                            </div>
                            <label class="control-label col-sm-1">反馈时间:</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control"
                                       value="${taskBackNew.createTime}" readonly>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="control-label col-sm-offset-1 col-sm-1">附件:</label>
                            <div class="col-sm-9">
                                <c:if test="${not empty taskBackNew.file}">
                                    <input type="text" readonly value="${taskBackNew.fileName}">
                                    <button class="btn btn-sm btn-success" FileSysId ="${taskBackNew.file}" onclick="download(this)"><span
                                            class="glyphicon glyphicon-save"></span>下载附件
                                    </button>
                                </c:if>
                                <c:if test="${empty taskBackNew.file}">
                                    <input type="text" value="无附件" class=" col-sm-9 form-control" readonly>
                                </c:if>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-sm-2">办理情况:</label>
                            <div class="col-sm-9">
                                <textarea rows="3" readonly class="form-control FeedbackContent1"
                                          type="text">${taskBackNew.content}</textarea>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-sm-2">存在问题:</label>
                            <div class="col-sm-9">
                                <textarea rows="3" readonly class="form-control " style="resize: vertical;min-height: 50px"
                                          type="text">${taskBackNew.problem}</textarea>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label col-sm-2">下一步计划:</label>
                            <div class="col-sm-9">
                                <textarea rows="3" readonly class="form-control " style="resize: vertical;min-height: 50px"
                                          type="text">${taskBackNew.plan}</textarea>
                            </div>
                        </div>
                    </div>
                </c:forEach>
            </div>
        </c:if>
        </div>
        <div class="form-group">
            <label class="control-label col-sm-1">流程记录</label>
            <div class="col-sm-9">
                <c:forEach var="logNew" items="${logNewList}" varStatus="num">
                    <div class="form-group">
                        <p class="col-sm-8">${num.count} ${logNew.createDate} ${logNew.createTime} ${logNew.content}</p>
                            <%--<button class="btn-sm btn btn-info col-sm-1 urge" btnSysId = "${logNew.sysId}">催办</button>--%>
                    </div>
                </c:forEach>
            </div>
        </div>
        <input type="hidden" id="sysId" value="${taskUnit.sysId}">
        <input type="hidden" id="taskSubId" value="${taskUnit.taskSubId}">
    </div>
</form:form>

<script src="<s:url value="/assets/js/chosen.jquery.js"></s:url>"></script>
<script src="<s:url value="/assets/js/bootstrap.js"></s:url>"></script>
<script src="<s:url value="/assets/js/ajaxfileupload.js"></s:url>"></script>
<script src="<s:url value="/assets/js/modal/modal.js"></s:url>"></script>
<script src="<s:url value="/assets/js/date-time/bootstrap-datepicker.js"></s:url>"></script>
<script src="<s:url value="/assets/js/select2.js"></s:url>"></script>

<script type="text/javascript">

</script>
</body>
</html>